package com.oceansoft.mobile.biz.api.service;

import com.alibaba.fastjson.JSONObject;
import com.oceansoft.mobile.biz.api.entity.WxDept;
import com.oceansoft.mobile.biz.api.entity.WxDeptResevre;
import com.oceansoft.mobile.biz.api.entity.WxReserve;
import com.oceansoft.mobile.common.base.entity.Pager;
import com.oceansoft.mobile.common.base.entity.Query;

import java.util.List;

/**
 * Created by Administrator on 2016/4/27.
 */
public interface IApiHzyyService {
    void saveDept(JSONObject wxdept,String parentid);

    int isHoliday(String date);

    List<WxDept> getDept(String parentid);

    WxDeptResevre getRevnum(String orgid);

    WxDeptResevre getsumnumBydate(String date,String orgid);

    int checkIsRev(String date, String orgid);

    boolean insertRev(WxReserve wxReserve);

    WxDeptResevre getsumnumBydateAndOpenId(String date, String orgid, String openId);

    boolean checkRecByopenId(WxReserve wxReserve);
    Pager getWxReserve(String openid, Query query);
}
